package com.Register.mapper;

import com.Register.entity.EnrollActivity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EnrollActivityMapper extends BaseMapper<EnrollActivity> {

    @Select("select user_id from enroll_activity where activity_id=#{id} and deleted=0")
    List<Long> getUserId(@Param("id") Long id);
}
